<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册</title>
    <link rel="stylesheet" href="./css/zhuce.css">
    <link rel="stylesheet" href="./layui-v2.5.6/layui/css/layui.css">
</head>

<body>
    <div class="index">
        <div class="index-a">
            <img src="https://cdn.poizon.com/node-common/JUU3JUJDJTk2JUU3JUJCJTg0JTIwN0AzeDE1Nzc3ODE5OTk2NDY=.png"
                alt="">
        </div>
      <input type="text" id="username"placeholder="请输入账号"><br>
      <input type="text" id="password" placeholder="请输入密码">
     
        <button class="layui-btn layui-btn-danger">立即注册</button>
    </div>
</body>
<script src="./layui-v2.5.6/layui/layui.js"></script>
<script src="./jquery-1.11.3.js"></script>
<script src="./scss/zhuce.js" type="module"></script>
<!-- <script src="../dewu/tools.js"></script>
<script src="../dewu/fetch.js"></script> -->
<script>
    // import { APIRegister } from './fetch.js';

    // layui.use(['layer'], function () {
    //     var layer = layui.layer;

    //     $('.layui-btn').click(function () {
    //         var username = $('#username').val();
    //         var password = $('#password').val();
    //         console.log(username, password);

    //         APIRegister({
    //             username,
    //             password
    //         }).then(({ code, msg }) => {
    //             console.log(data);
    //             if (code) {
    //                 layer.msg(msg);
    //                 location.href = 'http://127.0.0.1:5500/dewu/login.html';
    //             } else {
    //                 layer.msg(msg);
    //             }
    //         })

    //     })
    // })

</script>

</html>